package cn.zhuangcloud.word;

import cn.zhuangcloud.word.object.Unit;
import cn.zhuangcloud.word.object.question.ChoiceQuestion;
import cn.zhuangcloud.word.object.question.FillQuestion;
import cn.zhuangcloud.word.object.question.IQuestion;
import cn.zhuangcloud.word.object.unit.Analysis;
import cn.zhuangcloud.word.object.unit.IUnitPart;
import cn.zhuangcloud.word.object.unit.Operation;
import cn.zhuangcloud.word.object.unit.Preparation;

public class Test {

    public static void main(String[] args) {

        IQuestion[] questions=new IQuestion[3];
        questions[0] = new ChoiceQuestion("1+1=?", new String[]{"1", "2"}, "A", false, "B");
        questions[1] = new ChoiceQuestion("1+1!=?", new String[]{"1", "2", "3", "4"}, "ACD", true, "ACD");
        questions[2] = new FillQuestion("1+1=____, 2+2=____", "____", new String[]{"2", "3"}, new String[]{"2", "4"});

        IUnitPart[] unitParts=new IUnitPart[3];
        unitParts[0]=new Preparation(questions);
        unitParts[1] = new Operation("填充实验报告中关于操作部分的具体内容");
        unitParts[2] = new Analysis("填充数据分析部分的具体内容");

        Unit[] units=new Unit[2];
        units[0] = new Unit(unitParts, "第一次试验");
        units[1] = new Unit(unitParts, "第二次试验");

        ReportCreator wordCreator = new ReportCreator();
        wordCreator.createWord(units);
    }

}
